<div class="header-bottom">
	    <div class="wrap">
			<div class="header-bottom-left">
				<div class="logo">
					<a href="<?php echo base_url();?>"><img src="<?php echo base_url().F_IMG;?>logo.png" alt=""/></a>
				</div>
				<div class="menu">
	            <ul class="megamenu skyblue">
			<li class="active grid"><a href="<?php echo base_url();?>">Home</a></li>
			<li><a class="color6" href="<?php echo base_url();?>product/product-for-buy">For Buy</a></li>
			<li><a class="color6" href="<?php echo base_url();?>product/product-for-sale">For Sale</a></li>
			<li><a class="color4" href="<?php echo base_url();?>product/product-for-sale">Categories OR Brands</a>
				<div class="megapanel">
					<div class="row">
						<div class="col1">
							<div class="h_nav">
								<h4>Browse by category</h4>
								<ul>
									<?php
										foreach($categories->result() as $row){
											$cate_id=$row->category_id;
											$cate_name=$row->name;
									?>
											<li><a href="<?php echo base_url();?>product/category/<?php echo $cate_name;?>"><?php echo $cate_name;?></a></li>
									<?php
										}
									?>
									
								</ul>	
							</div>							
						</div>
						<div class="col1">
							<div class="h_nav">
								<h4>Browse by brands</h4>
								<ul>
									<?php
										foreach($brands->result() as $row){
											$brand_id=$row->brand_id;
											$brand_name=$row->name;
									?>
											<li><a href="<?php echo base_url();?>product/brand/<?php echo $brand_name;?>"><?php echo $brand_name;?></a></li>
									<?php
										}
									?>
									
								</ul>	
							</div>							
						</div>
					  </div>
					</div>
				</li>				
				
				<!--<li><a class="color6" href="<?php echo base_url();?>product/product-for-other">Other</a></li>-->
				
			</ul>
			</div>
		</div>
	   <div class="header-bottom-right">
         <div class="search">
         		<form method="get" action="<?php echo base_url();?>product/search-query">	  
					<input type="text" name="search-data" class="textbox" value="Search" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Search';}">
					<input type="submit" value="Search" id="submit">
					<div id="response"> </div>
				</form>
		 </div>
	  <!--<div class="tag-list">
	    <ul class="icon1 sub-icon1 profile_img">
			<li><a class="active-icon c1" href="#"> </a>
				<ul class="sub-icon1 list">
					<li><h3>sed diam nonummy</h3><a href=""></a></li>
					<li><p>Lorem ipsum dolor sit amet, consectetuer  <a href="">adipiscing elit, sed diam</a></p></li>
				</ul>
			</li>
		</ul>
		<ul class="icon1 sub-icon1 profile_img">
			<li><a class="active-icon c2" href="#"> </a>
				<ul class="sub-icon1 list">
					<li><h3>No Products</h3><a href=""></a></li>
					<li><p>Lorem ipsum dolor sit amet, consectetuer  <a href="">adipiscing elit, sed diam</a></p></li>
				</ul>
			</li>
		</ul>
	    <ul class="last"><li><a href="#">Cart(0)</a></li></ul>
	  </div>-->
    </div>
     <div class="clear"></div>
     </div>
	</div>